<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title>用户管理</title>
		<import type='css' file="admin.pintuer4.css.pintuer" />
		<import type='css' file="admin.pintuer4.css.admin" />
		<link type="image/x-icon" href="http://www.pintuer.com/favicon.ico" rel="shortcut icon" />
		<link href="http://www.pintuer.com/favicon.ico" rel="bookmark icon" />
	</head>

	<body>
		<include file="Public:header" />
	<!--内容-->
	<div class="layout">
		<div class="admin">
		<form method="post">
	    <div class="panel admin-panel">
	    	<div class="panel-head"><strong>用户列表</strong></div>
	    	<div class="padding border-bottom" style="overflow: hidden;">
				<a style="float: right;margin-left: 20px;" id="search" class="button button-small border-green" href="javascript:;">搜索</a>
				<input class="input input-small" placeholder="输入用户名或昵称或手机号" style="width: 200px;float: right;" id="search_word" name="search_word" value="{$_GET['search_word']}">
			</div>
	        <table class="table table-hover">
	        	<tr><th>用户id</th><th>昵称</th><th>用户名</th><th>手机号</th><th>注册时间</th><th>操作</th></tr>
	        	<volist name="user_arr" id="a">
	        	<tr>
		        	<td>{$a.id}</td>
		        	<td>{$a.nickname}</td>
		        	<td>{$a.username}</td>
		        	<td>{$a.phone}</td>
		        	<td>{$a['time']|date='Y-m-d',###}</td>
		        	<td>
		        		<a class="button border-blue button-little" href="{:U('User/reset_password')}?id={$a.id}">重置密码</a>
		        	</td>
	        	</tr>
	        	</volist>
	        </table>
	    </div>
	    <div class="meneame">{$page}</div>
	    </form>
	    </div>
	    </div>
		<!--底部-->

		
		<import type='js' file="admin.pintuer4.js.jquery" />
		<import type='js' file="admin.pintuer4.js.pintuer" />
		<import type='js' file="admin.pintuer4.js.respond" />
		<import type='js' file="admin.pintuer4.js.layer" />
		<import type='js' file="admin.pintuer4.js.admin" />
		<script>
			$(function() {
				
				//大于移动端800宽度才弹出提示
				if ($(window).width() >= 800) {
					layer.open({
						type: 1,
						shade: false,
						title: false, //不显示标题
						area: ['420px', '640px'],
						content: $('#alert-talk'), //捕获的元素
						cancel: function(index) {
							layer.close(index);
						}
					});
				}
			});
		</script>
		<script type="text/javascript">
			$(function(){
				$('#search').click(function(){
					url = window.location.pathname +  '?search_word=' + $('#search_word').val();
					location.href = url;
				});
			
				$('#search_word').bind('keypress',function(event){
			        if(event.keyCode == "13")    
			        {
			        	url = window.location.pathname +  '?search_word=' + $('#search_word').val();
			    		location.href = url;
			        }
			    });
				
			})
	</script>
	</body>

</html>